<?
require_once("../config/dbconn.php");require_once("../config/powercls.php");

	$sql="select * from {$db_prefix}products where id='$id'";
	$rs=$db->get_one($sql);

?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	
}
-->
</style>

<link href="images/skin.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" height="29" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td width="935" height="29" valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">产品查看</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td height="71" valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="13" valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td valign="top">
		
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td colspan="3"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="nowtable">
                <tr>
                  <td class="left_bt2">&nbsp;&nbsp;&nbsp;&nbsp;</td>
                </tr>
              </table></td>
            </tr>
            <tr>
              <td height="30" colspan="3">
			  
			  <table width="100%" height="270" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td align="center" bgcolor="#FFFFFF" class="left_txt">分类</td>
                  <td height="30" bgcolor="#FFFFFF" class="left_txt"><? if ($rs['psortid']){
				  	$sql1="select flname,path from {$db_prefix}psort where id='".$rs['psortid']."'";
					$rs1=$db->get_one($sql1);
				  	$cpath=$rs1['path'];
					$pathary=explode(',',$cpath);
					foreach($pathary as $k1=>$v1){
						$sqlf="select flname from {$db_prefix}psort where id='$v1'";
						$rsf=$db->get_one($sqlf);
						if ($k1>0) echo "--";
						echo $rsf['flname'];
						
					}
					echo "--".$rs1['flname'];
				  }?></td>
                </tr>
                <tr>
                  <td align="center" bgcolor="#FFFFFF" class="left_txt">产品</td>
                  <td height="30" bgcolor="#FFFFFF" class="left_txt">
                    <?=$rs['productname']?>                  </td>
                </tr>
                <tr>
                  <td align="center" bgcolor="#FFFFFF" class="left_txt">图片</td>
                  <td height="30" bgcolor="#FFFFFF" class="left_txt"><label>
                    <? if ($rs['pimg']) {?>
                    <img src="../uploads/productimgs/<?=$rs['pimg']?>" border="0">
                    <? }?>
                  </label></td>
                </tr>
                <tr>
                  <td align="center" bgcolor="#FFFFFF" class="left_txt">市场价</td>
                  <td height="30" bgcolor="#FFFFFF" class="left_txt"><label>
                    <?=$rs['scprice']?>美金</label></td>
                </tr>
				   <tr>
				     <td align="center" bgcolor="#FFFFFF" class="left_txt">会员价</td>
				     <td height="30" bgcolor="#FFFFFF" class="left_txt"><?=$rs['price']?>
			          美金</td>
			        </tr>
				   <tr>
				     <td align="center" bgcolor="#FFFFFF" class="left_txt">pv</td>
				     <td height="30" bgcolor="#FFFFFF" class="left_txt"><?=$rs['pv']?></td>
			        </tr>
				   <tr>
				     <td align="center" bgcolor="#FFFFFF" class="left_txt">库存</td>
				     <td height="30" bgcolor="#FFFFFF" class="left_txt"><?=$rs['num']?>件</td>
			        </tr>
				   <tr>
				     <td align="center" bgcolor="#FFFFFF" class="left_txt">说明</td>
				     <td height="30" bgcolor="#FFFFFF" class="left_txt">&nbsp;</td>
			        </tr>
				   <tr>
				     <td height="30" colspan="2" align="left"><label>
				       <?=stripslashes($rs['content'])?>
				     </label></td>
                  </tr>
              </table></td>
            </tr>
            
            <tr>
              <td height="30" colspan="3">&nbsp;</td>
            </tr>
            <tr>
              <td width="50%" height="30" align="right"><input type="button" value="返回列表" name="B1" onClick="history.back();" /></td>
              <td width="6%" height="30" align="right">&nbsp;</td>
              <td width="44%" height="30">&nbsp;</td>
            </tr>
            <tr>
              <td height="30" colspan="3">&nbsp;</td>
            </tr>
          </table>
		 
		  </td>
      </tr>
    </table></td>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
      <td height="17" valign="top" background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17" /></td>
    <td background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>

</body>
</html>